package vlms.bean;

/**
*
* This classes is the Data Transfer Object(Value Object) defination for the entity cart
*
*/

public class Cart 
{
	private int cartid;
	private int personid;
	private int movieid;


	public Cart(){}
	public Cart(int cartid ,int personid ,int movieid){
		this.cartid = cartid;
		this.personid = personid;
		this.movieid = movieid;
	}

	public void setCartid(int cartid ){
		 this.cartid =cartid;
	}
	public int getCartid(){
		 return(cartid);
	}
	public void setPersonid(int personid ){
		 this.personid =personid;
	}
	public int getPersonid(){
		 return(personid);
	}
	public void setMovieid(int movieid ){
		 this.movieid =movieid;
	}
	public int getMovieid(){
		 return(movieid);
	}
	
	@Override
	public boolean equals(Object obj) {
		boolean result = false;
		Cart cart = (Cart) obj;
		if  (this == obj || cartid == cart.getCartid())
		{
			result = true;
		}
		return result;
	}
}
